<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="item">
            <h2><span>Item</span> {{ item.id }}</h2>

            <hr>

            <jhi-alert-error></jhi-alert-error>

            <dl class="row-md jh-entity-details">
                <dt><span>Item Name</span></dt>
                <dd>
                    <span>{{ item.itemName }}</span>
                </dd>
                <dt><span>Item Code</span></dt>
                <dd>
                    <span>{{ item.itemCode }}</span>
                </dd>
                <dt><span>Soruce</span></dt>
                <dd>
                    <span>{{ item.soruce }}</span>
                </dd>
                <dt><span>Short Profile</span></dt>
                <dd>
                    <span>{{ item.shortProfile }}</span>
                </dd>
                <dt><span>Profile</span></dt>
                <dd>
                    <span>{{ item.profile }}</span>
                </dd>
                <dt><span>Item Type</span></dt>
                <dd>
                    <span *ngFor="let itemType of item.itemTypes; let last = last">
                        <a [routerLink]="['/item-type', itemType?.id, 'view']">{{ itemType.id }}</a>{{ last ? '' : ', ' }}
                    </span>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon icon="arrow-left"></fa-icon>&nbsp;<span>Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/item', item.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon icon="pencil-alt"></fa-icon>&nbsp;<span>Edit</span>
            </button>
        </div>
    </div>
</div>
